package com.yanqu.road.web.controller.game.forbid;

import com.yanqu.road.entity.admin.AdminResult;

/**
 * @Author : Cxp
 * @Time : 2025-02-18
 * @Description : 禁止修改名称/昵称
 */

public class DisableEditName extends BanBase {

    public DisableEditName(long userId, long endTime) {
        super(userId, endTime);
    }

    @Override
    AdminResult banAction() {
        AdminResult result = getBanResult();
        if (result != null) {
            return result;
        }

        sendMail();

        return AdminResult.defaultInstance();
    }

    @Override
    AdminResult unbanAction() {
        AdminResult result = getUnbanResult();
        if (result != null) {
            return result;
        }

        return AdminResult.defaultInstance();
    }
}
